package com.situ.ssm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.situ.ssm.entity.Student;

public interface StudentMapper {
	int getTotalCount();
	//	Map<String, Object> map = new HashMap<String, Object>();
	//	map.put("offset", offset);
	//	map.put("pageSize", pageSize);
	// MyBatis中除了封装Map传递多个参数还可以通过下面的形式传递多个参数
	List<Student> findByPage(@Param(value = "offset")Integer offset, @Param(value = "pageSize")Integer pageSize);
	int deleteById(Integer id);
}
